//输出比10000大的10个质数
object PrimeNumbersGreaterThan10000 {
  def isPrime(num: Int): Boolean = {
    if (num < 2) return false
    for (i <- 2 to math.sqrt(num).toInt) {
      if (num % i == 0) return false
    }
    true
  }

  def main(args: Array[String]): Unit = {
    var count = 0
    var number = 10001

    while (count < 10) {
      if (isPrime(number)) {
        println(number)
        count += 1
      }
      number += 1
    }
  }
}